<template>
	<view class="content">
		<view class="userList">
			<view class="userItem" v-for="item in 20" @click="gotoPage()">
				<image src="../../static/logo.png" mode="widthFix" class="varalar"></image>
				<view class="userMsg">
					<view class="userMsgDesc">今天今天今天今天今天今天今天今天今天今天今天今天今天</view>
					<view class="noseeNum">未读1</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			gotoPage(){
				uni.navigateTo({
					url:'./chat'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		width: 100%;
		padding: 20rpx 4%;
		box-sizing: border-box;
		background-color: #f4f4f4;
		.userList{
			.userItem{
				background-color: #FFFFFF;
				width: 100%;
				height: 120rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 20rpx;
				border-radius: 10rpx;
				padding: 10rpx;
				box-sizing: border-box;
				.varalar{
					width: 100rpx;
					height: 100rpx;
					border-radius: 50%;
				}
				.userMsg{
					width: calc(100% - 120rpx);
					font-size: 28rpx;
					color: #999;
					display: flex;
					.userMsgDesc{
						width: calc(100% - 140rpx);
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}
					.noseeNum{
						width: 120rpx;
						font-size: 24rpx;
						text-align: right;
					}
				}
			}
		}
	}
</style>
